package main.abstractfactory;

/**
 * @author: kejl
 * @create: 2020-07-13 01:17
 */
public class Client {
    public static void main(String[] args) {
        //使用抽象层定义
        SkinFactory factory;
        Button bt;
        TextField tf;
        ComboBox cb;
        SkinFactory skinFactory = new SpringSkinFactory();
        factory = skinFactory;
        bt = factory.createButton();
        tf = factory.createTextField();
        cb = factory.createComboBox();
        bt.display();
        tf.display();
        cb.display();


    }
}
